package com.powerwyx.shortlink.project.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.powerwyx.shortlink.project.common.convention.result.Result;
import com.powerwyx.shortlink.project.pojo.dto.ShortLinkCreateDTO;
import com.powerwyx.shortlink.project.pojo.vo.ShortLinkCreateVO;

/**
 * @author 王艺锡
 * @version 1.0
 */
public class CustomBlockHandler {
    public static Result<ShortLinkCreateVO> createShortLinkBlockHandlerMethod(ShortLinkCreateDTO requestParam, BlockException exception) {
        return new Result<ShortLinkCreateVO>().setCode("B100000").setMessage("当前访问网站人数过多，请稍后再试...");
    }
}
